package com.gali.mall.request.cartReq;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @author gali
 * @date 2022/4/21 20:36
 */
public class UpdateCartReq {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "productId不能为空")
    private Integer productId;
    @NotNull(message = "userId不能为空")
    private Integer userId;
    @NotNull(message = "商品数量不能为空")
    @Max(message = "最大数量为1000",value = 1000)
    private Integer quantity;
    @NotNull(message = "勾选状态不能为空")
    private Integer selected;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getSelected() {
        return selected;
    }

    public void setSelected(Integer selected) {
        this.selected = selected;
    }
}
